<script setup lang="ts">
import Child from './ChildView.vue'
import { ref } from 'vue'
import imgSrc from '@/img/父子组件v-model通信.png'

const firstName = ref('中')
const lastName = ref('国')
</script>

<template>
  <h1>{{ firstName }}-{{ lastName }}</h1>
  <Child v-model:firstName="firstName" v-model:lastName="lastName" />
  <img :src="imgSrc" alt="">
</template>
